<?php

namespace common\enum;

class CommonEnum
{
    // 待处理
    const PENDING = 0;
    // 成功
    const SUCCESS = 1;
    // 失败
    const FAILED = 2;
    // 取消
    const CANCEL = 3;

    // 关闭,停用
    const DISABLE = 0;
    // 开启,启用
    const ENABLED = 1;
    // 删除
    const DELETE = 2;
    //维护
    const MAINTAIN = 3;

    // 未发布
    const NOPUBLISH = 0;
    // 发布
    const PUBLISH = 1;
    // 已停用
    const DEACTIVATE = 2;

    // PC
    const DEVICE_PC = 1;
    // H5
    const DEVICE_H5 = 2;

    //最高角色，拥有所有权限且不可编辑修改
    const ADMIN_ROLE_ID = 1;

    // =========游戏类型=========================
    const GAME_EGAME = 1; // 电子
    const GAME_LIVE = 2; // 视讯1
    const GAME_SPORT = 3; // 体育
    const GAME_ESPORT = 4; // 电竞
    const GAME_LOTTERY = 5; // 彩票
    const GAME_CARD = 6; // 棋牌

    // 百分比，百倍化
    const PERCENT_TIMES = 100;
    //补单
    const REPAIR_STATUS_PENDING = 1; //补单中

    // =========分页常量定义=========================
    const PAGE_DEFAULT = 1;//默认分页页码
    const PAGE_SIZE_TEN = 10;//分页大小10
    const PAGE_SIZE_TWENTY = 20;//分页大小20
    const PAGE_SIZE_THIRTY = 30;//分页大小30
    const PAGE_SIZE_FORTY = 40;//分页大小40
    const PAGE_SIZE_FIFTY = 50;//分页大小50
    const PAGE_SIZE_HUNDRED = 100;//分页大小100
    const PAGE_SIZE_TWO_HUNDRED = 200;//分页大小200

    const ORDER_STATUS_WAITING = 0;//等待
    const ORDER_STATUS_ACCEPT = 1;//接受
    const ORDER_STATUS_SETTLED = 2;//结算
    const ORDER_STATUS_CANCELED = 3;//取消
    const ORDER_STATUS_REFUSED = 4;//拒绝


    //游戏大类尾缀
    const GAME_SUFFIX = [
        self::GAME_EGAME => '电子',
        self::GAME_LIVE => '视讯',
        self::GAME_SPORT => '体育',
        self::GAME_ESPORT => '电竞',
        self::GAME_LOTTERY => '彩票',
        self::GAME_CARD => '棋牌',
    ];
    //第三方特殊命名的名称
    const SPECIAL_GAME_SUFFIX = [
        self::GAME_SPORT=>[
            'SB' => '沙巴体育',
        ],
        self::GAME_CARD=>[
            'KY' => '开元棋牌'
        ],
    ];



}